Skip to content

Conversation

rreusser
Copy link
Contributor

cc: @bpostlethwaite

I've added the capability to ignore null frames in addFrames. I think it's good, but honestly I find the index-based addFrames a bit fragile and undesirable in the first place, so I hate to push 'fixes' through too quickly. All it does is continue to the next frame if the input is null.

@@ -43,6 +43,13 @@ describe('Test frame api', function() {
}).catch(fail).then(done);
});

it('compresses nulls when adding frames', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not just nulls to be fair. but yeah this seems like the correct behavoir

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha, you beat me to it.

@etpinard
Copy link
Contributor

💃

@rreusser
Copy link
Contributor Author

Expecting passed tests; waiting for confirmation just to play it safe.

@rreusser rreusser merged commit 7e9fc1d into master Dec 14, 2016
@rreusser rreusser deleted the add-frames-accept-null branch December 14, 2016 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants